<header>
        <div class="container">
            <div class="row top-header">
                <div class="col-sm-3 text-left">
                    <a href="#" class="logo">
                        <img src="http://10.222.29.165:3456/images/logo.png" alt="logo">
                    </a>
                </div>				
            </div>
        </div>
        <div class="container">
            <div class="bg-mn color-inher">
                <div class="row m-0">
                    <div class="col-sm-1 col-md-1 col-lg-2 p-0">
                        <div class="dropdown category-bar">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="true">
                                <i class="fa fa-bars"></i><span>Categories</span>
                            </a>
                            
                        </div>
                    </div>
                    <div class="col-sm-8 col-md-8 col-lg-7 p-0">
                        <div class="main-menu">
                            <nav class="navbar navbar-default menu">
                                <div class="navbar-header">
                                    <button type="button" class="navbar-toggle collapsed m-r-xs-15" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                                        <span class="sr-only">Toggle navigation</span>
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                        <span class="icon-bar"></span>
                                    </button>
                                </div>
                                <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                                    <ul class="nav navbar-nav"> 
                                            <li><a ui-sref="home">Home</a></li>
                                            <li><a ui-sref="login">Login</a></li>
                                            <li><a ui-sref="">Out</a></li>
                                            <li><a ui-sref="register">Register</a></li>
                                            <li><a ui-sref="/shoppingCart/calculate">Cart</a></li>
                                            <li><a ui-sref="/shoppingCart/calculate">MyHome</a></li>
                                    </ul>
                                </div>
                            </nav>
                        </div>
                    </div>	
                    <div class="col-sm-3 col-md-3 col-lg-3 p-0">
                        <div class="search-box m-l-xs-15 m-r-xs-15">
                            <input type="text" class="form-item" placeholder="Search...">
                            <button type="submit" class="fa fa-search"></button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </header>
<section ng-controller="orderController as oc">

    <div class="container">
        <div class="well center-block">
            <div class="panel panel-success">
                <div class="panel-heading" align="center">
                    <h4>订单列表</h4>
                </div>
                <div class="panel-body" style=" height:700px; overflow:auto">
                    <table class="table table-bordered table table-striped" id="orderInfoList">
                        <tr align="center">
                            <td>序号</td>
                            <td>订单编号</td>
                            <td>对应商家</td>
                            <td>下单时间</td>
                            <td>订单状态</td>
                            <td>查看详情</td>
                            <td>评论</td>
                            <td>确认收货</td>
                        </tr>
                        <tr align="center" ng-repeat="order in orders">
                            <td ng-bind="$index+1"></td>
                            <td>{{order._id}}</td>
                            <td>{{order.merchant.username}}</td>
                            <td>{{order.createDate| date:'yyyy-MM-dd hh:mm:ss'}}</td>
                            <td>{{order.status}}</td>
                            <td><button class="btn btn-success btn-primary btn-sm" ng-click="oc.openModal(order)">查看详情</button></td>

                            <td><button class="btn btn-success btn-primary btn-sm" ng-click="">评论</button></td>

                            <td><div ng-switch on="order.status">
                                <div ng-switch-when="订单完成">
                                    <span>订单完成</span>
                                </div>
                                <div ng-switch-default>
                                    <button class="btn btn-success btn-primary btn-sm" ng-click="oc.confirmOrder(order)">确定收货</button>
                                </div>
                            </div>
                            </td>




                            <!--<td name="orderInfoId">{{order._id}}</td>
                            <td name="customerName">{{order.customer}}</td>
                            <td name="date">{{order.date}}</td>
                            <td name="status">{{order.status}}</td>
                            <td><button class="btn btn-success btn-primary btn-sm" data-target="#orderInfoDetailModel" data-toggle="modal"
                                    ng-click="oc.detail(order)">查看详情</button></td>-->
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </div>

</section>